<script>
/*
 * @Author: wzh 
 * @Date: 2020-12-31 00:22:23 
 * @Last Modified by: 1521620993@qq.com
 * @Last Modified time: 2020-12-31 00:27:48
 */
</script>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>06-绝对定位与固定定位的区别</title>
</head>
<body>
  <style>
    .box{
      border: 2px solid brown;
      padding: 10px;
      /* position: relative; */
    }
    h3{
      height: 300px;
      border: 2px solid wheat;
    }
    .item{
      width: 200px;
      height: 200px;
      background-color: red;
      position: absolute;
      left: 0;
      bottom: 0;
    }
  </style>
  <div class="box">
    <h3>1</h3>
    <h3>2</h3>
    <h3>3</h3>
    <h3>4</h3>
    <h3>5</h3>
    <h3>6</h3>
    <div class="item"></div>
  </div>
</body>
</html>